/**
 * @Author: lt
 * @Date: 2019/8/28
 * @Last Modified by:   lt
 * @Last Modified time: 2019-08-28 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 保险公司信息查询
export const getInsuranceCompany = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/basedata/insuranceCo`, { params });

// 根据code查询保险公司信息
export const getInsurationByCode = id => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/basedata/insuranceCo/${id}`);

// 修改保险公司信息
export const updateInsurationByCode = params => axios.put(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/basedata/insuranceCo/saveInsuranceEdit`, params);

// 新增保险公司信息
export const addInsuration = params => axios.post(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/basedata/insuranceCo/save`, params);
